// $Id$
package cz.pd.projectbuilder.beans.load;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
import java.io.Serializable;

/**
 * 
 * @author diblik
 * @version $Revision$
 */
@XStreamAlias("projekt")
public class ProjectBean implements Serializable {

  private static final long serialVersionUID = -1189655610176608668L;
  @XStreamAsAttribute
  private String projectName;
  @XStreamAsAttribute
  private String path;
  @XStreamOmitField
  private String pathWithPom;
  @XStreamAsAttribute
  private Boolean selected;
  @XStreamAsAttribute
  private Boolean subprojekty;

  public ProjectBean(String name, String path) {
    this.projectName = name;
    this.path = path;
  }

  public ProjectBean(String name, String path, String pathWithPom) {
    this.projectName = projectName;
    this.path = path;
    this.pathWithPom = pathWithPom;
  }

  public String getName() {
    return projectName;
  }

  public void setName(String name) {
    this.projectName = name;
  }

  public String getPath() {
    return path;
  }

  public String getPathWithPom() {
    return pathWithPom;
  }

  public void setPathWithPom(String pathWithPom) {
    this.pathWithPom = pathWithPom;
  }

  public void setPath(String path) {
    this.path = path;
  }

  public Boolean getSelected() {
    return selected;
  }

  public void setSelected(Boolean selected) {
    this.selected = selected;
  }

  public Boolean getSubprojekty() {
    return subprojekty;
  }

  public void setSubprojekty(Boolean subprojekty) {
    this.subprojekty = subprojekty;
  }

//  @Override
//  public String toString() {
//    return "name: " + projectName + ", path: " + path + ", pathWithPom: " + pathWithPom + ", ma subProjekty: " + subprojekty;
//  }
  @Override
  public String toString() {
    return projectName;
  }
}
